package dao;

import java.util.List;

import vo.UserTopic;

public interface UserTopicDAO extends GenericDao<UserTopic, Long> {

	public List<UserTopic> findAll();

	public boolean isExiste(long userId, long topicId);

	public List<UserTopic> findNonSubUsers(long topicId);

	public List<UserTopic> findByUserId(long userId);

	public int findCountByUserId(long userId);

	public List<UserTopic> findByTopicId(long topicId);

	public List<UserTopic> findByTopicIdUserRole(long topicId);

	public UserTopic getById(long id);

	public void update(long id);

	public void delete(long id);// 不是真是删除

	public UserTopic getByTopicIdUserId(long topicId,long userId);

}
